<?php
/**
 * Created by PhpStorm.
 * User: hui
 * Date: 2017/2/26
 * Time: 13:28
 */
namespace app\admin\controller;

use think\Loader;

class Role extends Base
{
    public function index()
    {
        $list = Loader::model('module','logic')->getRoles();
        $title = '角色设置';
        $this->assign('title',$title);
        $this->assign('list',$list);
        return $this->fetch();
    }

    public function edit()
    {
        $list = Loader::model('module','logic')->getModule();
        $this->assign('list',$list);
        return $this->fetch();
    }

    public function save()
    {
        return $this->request->post();
    }
}